home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 586 < prev    next >
Internet Message Format  |  1996-08-06  |  2KB

  1. Path: tbj.dec.com!diamond
  2. From: diamond@tbj.dec.com (Norman Diamond)
  3. Newsgroups: comp.std.c
  4. Subject: Re: Valid floating-point constants ?
  5. Date: 18 Mar 1996 03:26:30 GMT
  6. Organization: Digital Equipment Corporation Japan , Tokyo
  7. Message-ID: <4iil56$t3q@usenet.pa.dec.com>
  8. References: <4ibmd9$aq5@gate.seicom.net>
  9. Reply-To: diamond@tbj.dec.com (Norman Diamond)
  10. NNTP-Posting-Host: jit533.tbj.dec.com
  11.  
  12. In article <4ibmd9$aq5@gate.seicom.net>, tydeman@tybor.com   (Fred Tydeman) writes:
  13. >I have run across some tools and compilers that do not like:
  14. >  08.5    09.   09e0
  15. >They complain that those are invalid octal integers.  I claim
  16. >that they are valid decimal floating-point constants. Who is right?
  17.  
  18. Just to be snarky, you're both right :-)  They are invalid octal integers
  19. but they are valid decimal floating-point constants :-)
  20.  
  21. Now, the phrase "tools and compilers" suggests that you're not using
  22. something that is supposed to be a standard conforming C implementation.
  23. If the compiler is part of a complete C implementation, and the vendor
  24. asserts that the implementation conforms to the ISO or ANSI standard,
  25. *and* if you have obeyed the vendor's instructions on how to invoke the
  26. implementation in a conforming manner, then you should demand a refund
  27. from the vendor.  However, if the tools are editors and other things
  28. that are not part of a C implementation or not asserted to be conforming,
  29. then the standard has nothing to say about them.
  30. --
  31.  <<  If this were the company's opinion, I would not be allowed to post it.  >>
  32. "I paid money for this car, I pay taxes for vehicle registration and a driver's
  33. license, so I can drive in any lane I want, and no innocent victim gets to call
  34. the cops just 'cause the lane's not goin' the same direction as me" - J Spammer
  35.